package org.csu.webjpetstoreback.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
@Repository
@TableName(value = "item")
public class Item {
    @TableField(value = "itemid")
    private String itemId;

    @TableField(value = "productid")
    private String productId;

    @TableField(value = "listprice")
    private BigDecimal listPrice;

    @TableField(value = "unitcost")
    private BigDecimal unitCost;

    @TableField(value = "supplier")
    private int supplierId;
    @TableField(value = "status")
    private String status;

    //属性1
    @TableField(value = "attr1")
    private String attribute1;
    //属性2
    @TableField(value = "attr2")
    private String attribute2;
    //属性3
    @TableField(value = "attr3")
    private String attribute3;
    //属性4
    @TableField(value = "attr4")
    private String attribute4;
    //属性5
    @TableField(value = "attr5")
    private String attribute5;


    }
